import sys
import json
def save(d,name):
    f=open(name,"w")
    json.dump(d,f,ensure_ascii=False)
    f.close()
def read(name):
    d={}
    f = open(name, "r")
    d=json.load(f)
    return d
if __name__ == '__main__':
    # d={"name":"王承宇","age":17,"married":False,"phone":"1493892929","wechat":"299sss"}
    # l=[]
    # l.append(d)
    # d = {"name": "沈嘉南", "age": 22, "married": False, "phone": "1493892929", "wechat": "299sss"}
    # l.append(d)
    # d = {"name": "侯姝彤", "age": 18, "married": False, "phone": "1493892929", "wechat": "299sss"}
    # l.append(d)
    # d = {"name": "彭于心", "age": 17, "married": False, "phone": "1493892929", "wechat": "299sss"}
    # l.append(d)
    # save(l,"python1.json")
    d2=read("python1.json")
    for x in d2:
        print(x)
